// 课程管理模块相关的TypeScript类型定义

/**
 * 课程分类
 */
export interface CourseCategory {
  id: number
  name: string
  description: string
  status: number // 0-禁用, 1-正常
  createdAt: string
  updatedAt: string
}

/**
 * 课程信息
 */
export interface Course {
  id: number
  categoryId: number
  categoryName: string
  name: string
  description: string
  coverImage: string
  duration: number // 课程时长(分钟)
  capacity: number // 最大容纳人数
  difficulty: number // 课程难度 1-初级 2-中级 3-高级
  status: number // 0-禁用, 1-正常
  createdAt: string
  updatedAt: string
}

/**
 * 创建课程请求参数
 */
export interface CreateCourseRequest {
  categoryId: number
  name: string
  description?: string
  coverImage?: string
  duration: number
  capacity: number
  difficulty: number
}

/**
 * 更新课程请求参数
 */
export interface UpdateCourseRequest {
  categoryId?: number
  name?: string
  description?: string
  coverImage?: string
  duration?: number
  capacity?: number
  difficulty?: number
  status?: number
}

/**
 * 课程列表响应数据
 */
export interface CourseListResponse {
  list: Course[]
  total: number
  page: number
  pageSize: number
}
